/*
** my_put_nbr.c for my_put_nbr in /home/labonn_c//Documents/piscine/libmy
** 
** Made by christophe labonnemartinez
** Login   <labonn_c@epitech.net>
** 
** Started on  Fri Oct 21 19:58:28 2011 christophe labonnemartinez
** Last update Fri Oct 21 19:58:30 2011 christophe labonnemartinez
*/

void	my_put_nbr(int nb)
{
  int	dv;
  int   reste;

  if (nb == 0)
  {
    my_putchar('0');
    return;
  }
  if (nb < 0)
      my_putchar('-');
  reste = nb % 10;
  if (reste < 0)
    reste = -reste;
  nb = nb / 10;
  if (nb < 0)
     my_put_nbr(-nb);
  else if (nb > 0)
     my_put_nbr(nb);
  my_putchar(reste + '0');
}
